<script type="text/javascript">
	$(document).ready(function() {
		pool.validate();
	});
</script>

<form method="post" id="createPoolForm"
	action="${basePath}/cluster/pool/createsave">
	<div class="main_Receipt_table" id="base">
		<div class="main_Receipt_table_m">
			<table border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<th style="width: 35%;" scope="row"><@spring.message code='pool.name'/>: <span
							class="color_red">*</span></th>
						<td style="width: 65%;"><input id="poolName" type="text"
							name="poolName" value="" /></td>
					</tr>
					<tr>
						<th scope="row"><@spring.message code='pool.pg.count'/>: <span
							class="color_red">*</span></th>
						<td style="position:relative;width: 65%;"><span style="margin-left:100px;width:18px;overflow:hidden;"><select
							style="width:188px;height: 24px;margin-left:-100px;"  onchange="this.parentNode.nextSibling.value=this.value">
								<option value='512'>512</option>
								<option value='1024'>1024</option>
								<option value='2048'>2048</option>
								<option value='4096'>4096</option>
								<option value='8192'>8192</option>
								<option value='16384'>16384</option>
						</select></span><input id="pg_num" name="pg_num" style="width:170px;height: 24px;position:absolute;left:5px;" value="1024">
						<!-- <input id="pg_num" name="pg_num"value=""> -->
						</td>
					</tr>
					<tr>
						<th scope="row"><@spring.message code='pool.crush_rule'/>: <span
							class="color_red">*</span></th>
						<td><select
							style="width: 54%;height: 24px;" id="rule_name" name="rule_name"> <#list
								crushRuleInfo as item>
								<option>${item}</option> </#list>
						</select></td>
					</tr>
					<tr>
						<th scope="row"><@spring.message code='pool.replication.factor'/>: <span
							class="color_red">*</span></th>
						<td><select
							style="width: 54%;height: 24px;" name="size">
								<option value="2" selected>2</option>
								<option value="3">3</option>
								<option value="4">4</option>
						</select></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</form>
